/**
 * 
 */
package com.zhouh.golden.security.code;

import com.sun.org.apache.xpath.internal.SourceTree;
import com.zhouh.golden.common.constants.GoldenConstant;

/**
 * @author zhailiang
 *
 */
public enum ValidateCodeType {
	/**
	 * 短信验证码
	 */
	SMS {
		@Override
		public String getParamNameOnValidate() {
			return GoldenConstant.DEFAULT_PARAMETER_NAME_CODE_SMS;
		}
	},
	/**
	 * 图片验证码
	 */
	IMAGE {
		@Override
		public String getParamNameOnValidate() {
			return GoldenConstant.DEFAULT_PARAMETER_NAME_CODE_IMAGE;
		}
	};

	/**
	 * 校验时从请求中获取的参数的名字
	 * @return
	 */
	public abstract String getParamNameOnValidate();

    public static void main(String[] args) {
        System.out.println(ValidateCodeType.SMS.toString().toLowerCase());
    }
}
